"use strict";
/**
 * @description 图库表
 * @author jacinto
 */
module.exports = (app) => {
    const { INTEGER, STRING } = app.Sequelize;

    const PosPhoto = app.model.define("pos_photo", {
        id: {
            type: INTEGER,
            primaryKey: true,
            autoIncrement: true,
            comment: "主键id，自增",
        },
        folderId: {
            type: INTEGER,
            allowNull: false,
            comment: "文件夹id",
        },
        url: {
            type: STRING,
            allowNull: false,
            comment: "图片路径",
        },
        fullUrl: {
            type: STRING,
            allowNull: false,
            comment: "图片全路径",
        },
    });

    return PosPhoto;
};
